package com.use;

import com.startertest.bean.MyBean;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

/**
 * @author shenjies88
 * @since 2023/1/27/19:59
 */
@SpringBootApplication
public class Application {

    private static MyBean myBean;

    public static void main(String[] args) {
        SpringApplication.run(Application.class);
        System.out.printf("自动配置成功 %s%n", myBean);
    }

    @Autowired
    public void setMyBean(MyBean mb) {
        myBean = mb;
    }
}
